package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestLife {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac=new
                AnnotationConfigApplicationContext("cn.tedu.spring.life");
        Life l=ac.getBean(Life.class);
        System.out.println(l+"开发者使用");
        ac.close();



    }
}
